﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Snowflake.Core;

namespace Dal
{
    /// <summary>
    /// 雪花算法生成ID
    /// </summary>
    public class SnowID
    {
        private static IdWorker idWorker = null;
        public static IdWorker _idWorker
        {
            get
            {
                if (idWorker == null)
                {
                    idWorker = new IdWorker(1, 1);
                }
                return idWorker;
            }
        }
    }
}
